/**
 * Malsha 2014-10-21
 */

Report = new Object();

Report.OpenWindowWithPost = function(url, windowoption, name, params) {
	var form = document.createElement("form");
	form.setAttribute("method", "post");
	form.setAttribute("action", url);
	form.setAttribute("target", name);
	for ( var i in params) {
		if (params.hasOwnProperty(i)) {
			var input = document.createElement('input');
			input.type = 'hidden';
			input.name = i;
			input.value = params[i];
			form.appendChild(input);
		}
	}
	document.body.appendChild(form);
	window.open("post.html", name, windowoption);
	form.submit();
};